home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Tutorial
/
Cookbook
/
28.Motion
/
MotionView.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
838b
|
40 lines
/* Generated by Interface Builder */
#import <appkit/View.h>
#import <appkit/nextstd.h>
#import <dpsclient/dpsclient.h> // For DPSTimedEntry, used below
@interface MotionView:View
{
id VxForm;
id VyForm;
float ballRadius, ballDiameter;
float gravity;
float force, angle;
DPSTimedEntry clockTE; // The clock timed entry
float Dxi, Dyi; // initial X and Y position;
float Dx,Dy; // current position
float Vxi, Vyi; // initial X and Y velocity;
float Vx, Vy; // velocity
int running; // is the timer running? */
int trail; // show your trail?
}
+ newFrame:(const NXRect *)tF;
- doTimedEntry;
- free;
- speed:sender;
- angle:sender;
- gravity:sender;
- start:sender;
- stop:sender;
- reset:sender;
- trail:sender;
- setVxForm:anObject;
- setVyForm:anObject;
@end